<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	template="/templates/mainTemplate.xhtml">

	<ui:define name="content">
		<h:form>
			<div align="center">
				<rich:panel style="margin-top:25px; width:390px;">
				<div class="login bloques" style="height: 190px;">
					<div align="center"><h:graphicImage
						value="/layout/img/acceder.jpg"></h:graphicImage></div>
					<div align="right"><h:outputLabel value="#{messages.username}"
						for="username"></h:outputLabel> <h:inputText id="username"
						value="#{identity.username}" styleClass="inputText"></h:inputText></div>
		
					<div align="right" style="margin-top: 13px;"><h:outputLabel
						value="#{messages.password}" for="password"></h:outputLabel> <h:inputSecret
						id="password" value="#{identity.password}" styleClass="inputText"></h:inputSecret>
					</div>
		
					<div align="center" style="margin-top: 13px;"><a:commandButton
						id="bLogin" value="#{messages.login}" action="#{identity.login}"
						styleClass="btn80" style="width : 90px; height : 24px;"/> <!-- <a:status>
					<f:facet name="start">
						<h:graphicImage value="/layout/img/spinner.gif" />
					</f:facet>	</a:status>  --></div>
					<div align="right" style="margin-top: 30px;"><h:outputText
						value="#{messages.registerMessage}" /><rich:spacer width="10px;" /> <h:commandLink
						value="#{messages.registerAction}" action="#{registerUser.initRegister}"/></div>
				</div>			
				</rich:panel>
				
				<rich:panel style="margin-top:15px; width:390px;">
					<div align="right" style=" height:50px; padding-top: 10px;" class="login bloques" ><h:outputText
						value="#{messages.registerRestaurantMessage}" /><rich:spacer width="10px;" /> <h:commandLink
						value="#{messages.registerRestaurantAction}" action="#{registerUser.initRegisterOwner}"/>
					</div>
				</rich:panel>
							
			</div>

		</h:form>
	</ui:define>
</ui:composition>